import request from '@/utils/request'

export function getCase(caseId) {
  return request({
    url: `/case/detail/${caseId}`,
    method: 'get'
  })
}

export function getAutoGlobalList(caseId) {
  return request({
    url: "/autoGlobal/use/list",
    method: 'get'
  })
}


export function getUpdateDetial(id) {
    return request({
      url: `/params/detail/${id}`,
      method: 'get'
    })
}

export function updateParamsPost(data) {
    return request({
      url: "/params/update",
      method: 'post',
      data
    })
}

export function deleteOneParams(id) {
    return request({
      url: `/params/${id}`,
      method: 'delete'
    })
}

export function addParams(data) {
    return request({
      url: "/params/add",
      method: 'post',
      data
    })
}


  